/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rapphim;
import GUI.*;
import javax.swing.JFrame;
import java.sql.*;
import java.util.Properties;
import javax.swing.JOptionPane;
/**
 *
 * @author tran quoc thinh
 */
public class RapPhim {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       
       DangNhap frmDangNhap = new DangNhap();
       frmDangNhap.setVisible(true);
       
//       Admin frmAdmin = new Admin();
//       frmAdmin.setExtendedState(JFrame.MAXIMIZED_BOTH);
//       frmAdmin.setVisible(true);
        
//        NhanVien frmNhanVien = new NhanVien();
//        frmNhanVien.setExtendedState(JFrame.MAXIMIZED_BOTH);
//        frmNhanVien.setVisible(true);
        
        //connect();
        
    }
    public static void connect()
    {
//        try{
//            Driver driver = new org.gjt.mm.mysql.Driver();
//            DriverManager.registerDriver(driver);
//            String conString = "jdbc:mysql://localhost:3306/chieuphimonline";
//            Properties info = new Properties();
//            info.setProperty("characterEncoding", "utf8");
//            info.setProperty("user", "root");
//            Connection connect = DriverManager.getConnection(conString, info);
////            System.out.print(connect);
//            Statement stm = connect.createStatement();
////            connect.setAutoCommit(false);
//            String sql = "select * from nhanvien";
//            ResultSet rs = stm.executeQuery(sql);
//            while(rs.next())
//            {
//            sql = rs.getString("tennv");
//            System.out.print(sql);
//            }
//        }catch(Exception ex)
//        {
//            
//        }
    }
}
